home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / viewkit / VCal / Preferences.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  4.6 KB  |  119 lines

  1. /*
  2.  * Copyright (C) 1994, Silicon Graphics, Inc.
  3.  * All Rights Reserved.
  4.  *
  5.  * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  6.  * the contents of this file may not be disclosed to third parties, copied or
  7.  * duplicated in any form, in whole or in part, without the prior written
  8.  * permission of Silicon Graphics, Inc.
  9.  *
  10.  * RESTRICTED RIGHTS LEGEND:
  11.  * Use, duplication or disclosure by the Government is subject to restrictions
  12.  * as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  13.  * and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  14.  * successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  15.  * rights reserved under the Copyright Laws of the United States.
  16.  */
  17. #ifndef _PREFERENCES_
  18. #define _PREFERENCES_
  19.  
  20. #include <X11/Intrinsic.h>
  21.  
  22. class Preferences {
  23. public:
  24.   Preferences(Widget w);
  25.   ~Preferences();
  26.  
  27.   char *filename() { return _filename; }
  28.   char *advanceWarning() { return _advanceWarning; }
  29.   int updateInterval() { return _updateInterval; }
  30.   Boolean showLates() { return _showLates; }
  31.   Boolean saveChangesAutomatically() { return _saveChangesAutomatically; }
  32.   Boolean annotateFile() { return _annotateFile; }
  33.   Boolean updateIconName() { return _updateIconName; }
  34.   Boolean updateIconDate() { return _updateIconDate; }
  35.   Boolean clock24() { return _clock24; }
  36.   Boolean alarms() { return _alarms; }
  37.   Boolean notifyPopup() { return _notifyPopup; }
  38.   Boolean notifyBell() { return _notifyBell; }
  39.   Boolean notifyMail() { return _notifyMail; }
  40.   Boolean notifyConfirmDelete() { return _notifyConfirmDelete; }
  41.   char *notifyCommand() { return _notifyCommand; }
  42.   Boolean annotateDay() { return _annotateDay; }
  43.   int snoozeMinutes() { return _snoozeMinutes; }
  44.   Boolean hideMenuBar() { return _hideMenuBar; }
  45.   int apptLength() { return _apptLength; }
  46.   int gridLength() { return _gridLength; }
  47.   int apptSubdiv() { return _apptSubdiv; }
  48.   int snapInterval() { return _snapInterval; }
  49.   Boolean annotateMonth() { return _annotateMonth; }
  50.   Boolean restricted() { return _restricted; }
  51.   int restrictStart() { return _restrictStart; }
  52.   int restrictStop() { return _restrictStop; }
  53.  
  54.   void setFilename(const char *v);
  55.   void setAdvanceWarning(const char *v);
  56.   void setUpdateInterval(int v) { _updateInterval = v; }
  57.   void setShowLates(Boolean v) { _showLates = v; }
  58.   void setSaveChangesAutomatically(Boolean v)
  59.     { _saveChangesAutomatically = v; }
  60.   void setAnnotateFile(Boolean v) { _annotateFile = v; }
  61.   void setUpdateIconName(Boolean v) { _updateIconName = v; }
  62.   void setUpdateIconDate(Boolean v) { _updateIconDate = v; }
  63.   void setClock24(Boolean v) { _clock24 = v; }
  64.   void setAlarms(Boolean v) { _alarms = v; }
  65.   void setNotifyPopup(Boolean v) { _notifyPopup = v; }
  66.   void setNotifyBell(Boolean v) { _notifyBell = v; }
  67.   void setNotifyMail(Boolean v) { _notifyMail = v; }
  68.   void setNotifyConfirmDelete(Boolean v) { _notifyConfirmDelete = v; }
  69.   void setNotifyCommand(const char *v);
  70.   void setAnnotateDay(Boolean v) { _annotateDay = v; }
  71.   void setSnoozeMinutes(int v) { _snoozeMinutes = v; }
  72.   void setHideMenuBar(Boolean v) { _hideMenuBar = v; }
  73.   void setApptLength(int v) { _apptLength = v; }
  74.   void setGridLength(int v) { _gridLength = v; }
  75.   void setApptSubdiv(int v) { _apptSubdiv = v; }
  76.   void setSnapInterval(int v) { _snapInterval = v; }
  77.   void setAnnotateMonth(Boolean v) { _annotateMonth = v; }
  78.   void setRestricted(Boolean v) { _restricted = v; }
  79.   void setRestrictStart(int v) { _restrictStart = v; }
  80.   void setRestrictStop(int v) { _restrictStop = v; }
  81.  
  82.   void loadPreferences();
  83.   void savePreferences();
  84.  
  85.   void useFactory();
  86.  
  87. protected:
  88.   char *_filename, *_filename0;
  89.   char *_advanceWarning, *_advanceWarning0;
  90.   int _updateInterval, _updateInterval0;
  91.   Boolean _showLates, _showLates0;
  92.   Boolean _saveChangesAutomatically, _saveChangesAutomatically0;
  93.   Boolean _annotateFile, _annotateFile0;
  94.   Boolean _updateIconName, _updateIconName0;
  95.   Boolean _updateIconDate, _updateIconDate0;
  96.   Boolean _clock24, _clock240;
  97.   Boolean _alarms, _alarms0;
  98.   Boolean _notifyPopup, _notifyPopup0;
  99.   Boolean _notifyBell, _notifyBell0;
  100.   Boolean _notifyMail, _notifyMail0;
  101.   Boolean _notifyConfirmDelete, _notifyConfirmDelete0;
  102.   char *_notifyCommand, *_notifyCommand0;
  103.   Boolean _annotateDay, _annotateDay0;
  104.   int _snoozeMinutes, _snoozeMinutes0;
  105.   Boolean _hideMenuBar, _hideMenuBar0;
  106.   int _apptLength, _apptLength0;
  107.   int _gridLength, _gridLength0;
  108.   int _apptSubdiv, _apptSubdiv0;
  109.   int _snapInterval, _snapInterval0;
  110.   Boolean _annotateMonth, _annotateMonth0;
  111.   Boolean _restricted, _restricted0;
  112.   int _restrictStart, _restrictStart0;
  113.   int _restrictStop, _restrictStop0;
  114. };
  115.  
  116. extern Preferences *thePreferences;
  117.  
  118. #endif
  119.